package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.StarDao;
import com.zhiyou100.model.Star;
@Service
public class StarServiceImpl implements StarService{
	@Autowired
	private StarDao starDao;
	public void add(Star star) {
		starDao.add(star);
	}

	public void delete(int userId) {
		starDao.delete(userId);
	}

	public ArrayList<Star> findAll(int userId) {
		ArrayList<Star> al = starDao.findAll(userId);
		return al;
	}

}
